3.3.82 \(\int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx\) [282]

Optimal. Leaf size=76 \[ \frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {1}{2 n};\frac {1}{2} \left (2+\frac {1}{n}\right );\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \]

[Out]

x*hypergeom([-1/2, 1/2/n],[1+1/2/n],b^2*x^(2*n)/a^2)*(a-b*x^n)^(1/2)*(a+b*x^n)^(1/2)/(1-b^2*x^(2*n)/a^2)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {259, 252, 251} \begin {gather*} \frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {1}{2 n};\frac {1}{2} \left (2+\frac {1}{n}\right );\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a - b*x^n]*Sqrt[a + b*x^n],x]

[Out]

(x*Sqrt[a - b*x^n]*Sqrt[a + b*x^n]*Hypergeometric2F1[-1/2, 1/(2*n), (2 + n^(-1))/2, (b^2*x^(2*n))/a^2])/Sqrt[1
 - (b^2*x^(2*n))/a^2]

Rule 251

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[-p, 1/n, 1/n + 1, (-b)*(x^n/a)],
x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILtQ[Simplify[1/n + p], 0] && (IntegerQ[p
] || GtQ[a, 0])

Rule 252

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^FracPart[p]/(1 + b*(x^n/a))^Fra
cPart[p]), Int[(1 + b*(x^n/a))^p, x], x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILt
Q[Simplify[1/n + p], 0] &&  !(IntegerQ[p] || GtQ[a, 0])

Rule 259

Int[((a1_.) + (b1_.)*(x_)^(n_))^(p_)*((a2_.) + (b2_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[(a1 + b1*x^n)^FracPar
t[p]*((a2 + b2*x^n)^FracPart[p]/(a1*a2 + b1*b2*x^(2*n))^FracPart[p]), Int[(a1*a2 + b1*b2*x^(2*n))^p, x], x] /;
 FreeQ[{a1, b1, a2, b2, n, p}, x] && EqQ[a2*b1 + a1*b2, 0] &&  !IntegerQ[p]

Rubi steps

\begin {align*} \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx &=\frac {\left (\sqrt {a-b x^n} \sqrt {a+b x^n}\right ) \int \sqrt {a^2-b^2 x^{2 n}} \, dx}{\sqrt {a^2-b^2 x^{2 n}}}\\ &=\frac {\left (\sqrt {a-b x^n} \sqrt {a+b x^n}\right ) \int \sqrt {1-\frac {b^2 x^{2 n}}{a^2}} \, dx}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}}\\ &=\frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {1}{2 n};\frac {1}{2} \left (2+\frac {1}{n}\right );\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 76, normalized size = 1.00 \begin {gather*} \frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {1}{2 n};1+\frac {1}{2 n};\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a - b*x^n]*Sqrt[a + b*x^n],x]

[Out]

(x*Sqrt[a - b*x^n]*Sqrt[a + b*x^n]*Hypergeometric2F1[-1/2, 1/(2*n), 1 + 1/(2*n), (b^2*x^(2*n))/a^2])/Sqrt[1 -
(b^2*x^(2*n))/a^2]

________________________________________________________________________________________

Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \sqrt {a -b \,x^{n}}\, \sqrt {a +b \,x^{n}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a-b*x^n)^(1/2)*(a+b*x^n)^(1/2),x)

[Out]

int((a-b*x^n)^(1/2)*(a+b*x^n)^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-b*x^n)^(1/2)*(a+b*x^n)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(b*x^n + a)*sqrt(-b*x^n + a), x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-b*x^n)^(1/2)*(a+b*x^n)^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ha
s polynomial part)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a - b x^{n}} \sqrt {a + b x^{n}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-b*x**n)**(1/2)*(a+b*x**n)**(1/2),x)

[Out]

Integral(sqrt(a - b*x**n)*sqrt(a + b*x**n), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-b*x^n)^(1/2)*(a+b*x^n)^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(b*x^n + a)*sqrt(-b*x^n + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {a+b\,x^n}\,\sqrt {a-b\,x^n} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x^n)^(1/2)*(a - b*x^n)^(1/2),x)

[Out]

int((a + b*x^n)^(1/2)*(a - b*x^n)^(1/2), x)

________________________________________________________________________________________